<?php
/**
 * Created by PhpStorm.
 * User: ownfi
 * Date: 2017-04-04
 * Time: 20:31
 */

namespace App\Services\Impl;


use App\Common\Constant\Params;
use App\Models\OrderOffer;
use App\Services\IStatisticService;

class StatisticServiceImpl implements IStatisticService
{
    public function countMasterServed($master_id)
    {
        return OrderOffer::where(["master_id"=>$master_id,"status"=>Params::OFFER_STATUS_EMPLOYED])->count();
    }

}